﻿
@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width = device-width, initial-scale = 1.0, maximum-scale = 1.0, user-scalable = 0" />
    <meta content="telephone=no" name="format-detection">
    <meta http-equiv="Content-Type" content="text/html">
    <title>享动运动季</title>
    <link href="~/Content/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Content/success.css" rel="stylesheet" />
</head>
<body>

    <div class="minbody">
        <div class="content">
            <p style="font-size: 1.8rem">您已成功领取</p>
            <p style="font-size: 1.8rem" id="ticketName"></p>
            <p style="font-size: 1.4rem">您可以在卡券包里查看卡券</p>
            <p class="countdown" style="font-size: 1.2rem">
                <span class="second">5</span>
                s 后将跳转至活动首页
            </p>
            <img src="../image/success/button-tijiao.png" alt="" />
        </div>
    </div>
    <script src="~/Scripts/jquery.min.js"></script>
    <script src="~/Content/bootstrap/js/bootstrap.min.js"></script>
    <script src="~/Scripts/Framework/JsOPP.js"></script>
    <script>
        $(function () {
              var shopName = getUrlParam("name");
            var ticketName = getUrlParam("ticketName");
            //var ticketName = "";
            //if (pageType == 1)
            //    ticketName = "免费体验卡";
            //else if (pageType == 2)
            //    ticketName = "好礼加油卡";
            //else if (pageType == 3)
            //    ticketName = "豪礼助力卡";
            $("#ticketName").text(shopName + ticketName);
        var wait = $(".second").html();
        timeOut();
        /**
         * 实现倒计时
         */
        function timeOut() {
            if(wait != 0) {
                setTimeout(function() {
                    $('.second').text(--wait);
                    timeOut();
                }, 1000);
            }else if(wait == 0){
                window.location.href = "/HeShengHuo/index"
            }
        }
        $(".content img").click(function(){
            window.location.href = "/HeShengHuo/index"
        })
    });
    </script>
</body>
</html>